import service from '@/utils/request'

const url = {
  // 上传文件
  uploadFile: '/common/upload'
}

export const Common = {
  // 上传文件
  uploadFile: function (params) {
    return service({
      url: url.uploadFile,
      method: 'post',
      headers: {
        'Content-Type': 'multipart/form-data'
      },
      data: params
    })
  }
}
